﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000CD RID: 205
	internal class FixExt4 : IExtDecoder
	{
		// Token: 0x0600030C RID: 780 RVA: 0x0000BECD File Offset: 0x0000A2CD
		private FixExt4()
		{
		}

		// Token: 0x0600030D RID: 781 RVA: 0x0000BED8 File Offset: 0x0000A2D8
		public ExtensionResult Read(byte[] bytes, int offset, out int readSize)
		{
			readSize = 6;
			sbyte typeCode = (sbyte)bytes[offset + 1];
			byte[] data = new byte[]
			{
				bytes[offset + 2],
				bytes[offset + 3],
				bytes[offset + 4],
				bytes[offset + 5]
			};
			return new ExtensionResult(typeCode, data);
		}

		// Token: 0x040000E9 RID: 233
		internal static readonly IExtDecoder Instance = new FixExt4();
	}
}
